# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=dasht
pkgver=2.4.0
pkgrel=0
pkgdesc="collection of shell scripts for searching, browsing, and managing API documentation from Dash"
url="https://github.com/sunaku/dasht"
arch="noarch"
license="ISC"
depends="
	socat
	sqlite
	w3m
	wget
"
options="!check"  # no tests
subpackages="$pkgname-zsh-completion $pkgname-doc"
source="https://github.com/sunaku/dasht/archive/v$pkgver/dasht-$pkgver.tar.gz"

package() {
	mkdir -p "$pkgdir"/usr/share/man
	mkdir -p "$pkgdir"/usr/share/zsh/site-functions
	mv bin "$pkgdir"/usr/
	mv man "$pkgdir"/usr/share/
	mv etc/zsh/completions/* "$pkgdir"/usr/share/zsh/site-functions/
}

sha512sums="
4810fa05df78179d268bd2d2bbe4d821ef7330e837aa1b76034edd79add34e4087d6a0983c34504f905adf0ccee9515c88e70cbe330cdc68c5be33deb12a3166  dasht-2.4.0.tar.gz
"
